import request from '@/utils/axios';
import type { CheckCodeType, LoginType } from '@/models/login/index';

export const getcheckCode = async () => {
    return request.get('/common/checkCode')
}
export const getEmailCode = async (data: CheckCodeType) => {
    return request.get('/common/sendEmailCode', {
        params: data
    })
}

export const login = async (data: LoginType) => {
    return request.post('/tuanUser/login', data)
}